<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Provide Address Information</title>
</head>
<body>
	<h1>Security Design Patterns</h1>
	<h2>Sample 3 - Validate data type</h2>
	<hr>
	<html:form action="/sample3Result">
		<table>
			<tr>
				<td>Validation based on sufix in filter</td>
				<td><html:checkbox property="encodeForHtmlInFilter" /></td>
			</tr>
			<hr>
			<tr>
				<td>Integer</td>
				<td><html:text property="mySampleInt" /></td>
			</tr>
			<tr>
				<td>Date</td>
				<td><html:text property="mySampleDate" /></td>
			</tr>
			<tr>
				<td>Flag</td>
				<td><html:text property="mySampleFlag" /></td>
			</tr>
			<tr>
				<td>Email</td>
				<td><html:text property="myPersonalEmail" /></td>
			</tr>
			<tr>
				<td>String</td>
				<td><html:text property="mySampleString" /></td>
			</tr>
			<tr>
				<td>Html fragment</td>
				<td><html:textarea property="myDynamicFragmentHtml" cols="50" rows="5" /></td>
			</tr>
			<tr>
				<td>Source Code</td>
				<td><html:textarea property="mySampleCode" cols="50" rows="5" /></td>
			</tr>
		</table>
		<html:submit value="Submit"/>
	</html:form>

</body>
</html>
